<script setup
        lang="ts">
import {useStore} from "vuex";
import {getImageUrl} from "@/utils/assets";

const $store=useStore()
const logout=()=>{
  let token=$store.getters["userStore/getToken"]
  $store.dispatch("userStore/asyncLogout",token)
}
</script>

<template>
  <h2>下载文件</h2>
  <a :href="getImageUrl('wechat.jpg')" download="wechat1.jpg">download</a>
  <el-button type="primary" @click="logout">退出</el-button>
</template>

<style scoped>

</style>
